package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.CostType;

public interface CostTypeService {

	public abstract CostType getCostTypeById(Long id);

	public abstract int getCostTypeCountByCriteria(DetachedCriteria query);

	public abstract List< CostType> getCostTypes(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String CreateTypeCode();

	public abstract void saveCostType(CostType costType);

	public abstract void updateCostType(CostType costType);

	public abstract void removeCostType(Long id);

	public abstract List<CostType> getCostTypes();

	public abstract List<CostType> getCostTypesByTypeName(String type, int start, int size);
	
	public abstract int getCostTypesCountByName(String type);
	
	public abstract List<CostType> getCostTypes(DetachedCriteria query);
}
